function createCookieDays(name, value, days)
{
  if (days) {
    var date = new Date();
    date.setTime(date.getTime()+(days*24*60*60*1000));
    var expires = "; expires="+date.toGMTString();
    }
  else var expires = "";
  document.cookie = name+"="+value+expires+"; path=/";
}


function createCookieMinutes(name, value, min)
{
  if (min) {
    var date = new Date();
    date.setTime(date.getTime()+(min*60*1000));
    var expires = "; expires="+date.toGMTString();
    }
  else var expires = "";
  document.cookie = name+"="+value+expires+"; path=/";
}

var date = new Date()
createCookieMinutes("TaMeR_JSTZ", date, "10");

//var gmt = date.getTimezoneOffset()/60
//createCookieDays("TaMeR_GMT", "GMT"+gmt, "1");


